Skip to content

Conversation

@llucax
Copy link
Contributor

@llucax llucax commented Aug 18, 2025

This PR fixes v0.x.x by removing the recently introduced v1alpha8 namespace and making the new additions backwards compatible.

It moves the new additions from the v1alpha8 namespace to the top-level (electrical_components and streaming modulues). It also fixes the dependency constraint for frequenz-api-common.

llucax added 5 commits August 18, 2025 17:25
This can be added in a backwards-compatible way, so we can add it to the
top-level.

Signed-off-by: Leandro Lucarella <[email protected]>
We can add the new name for electrical components keeping backwards
compatibility without the need for a new namespace, so we just move it
to the top-level `microgrid` package.

Signed-off-by: Leandro Lucarella <[email protected]>
We don't need this namespace in this repository, this is useful for API
repositories (protobuf), but for Python we can keep backwards
compatibility in a different way.

Signed-off-by: Leandro Lucarella <[email protected]>
We want to be compatible up to v1.0.0, not v9.0.0.

Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Copilot AI review requested due to automatic review settings August 18, 2025 15:32
@llucax llucax requested a review from a team as a code owner August 18, 2025 15:32
@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:microgrid Affects the microgrid protobuf definitions labels Aug 18, 2025
@llucax llucax requested a review from Marenz August 18, 2025 15:32
@llucax llucax self-assigned this Aug 18, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes v0.x.x by removing the v1alpha8 namespace and making new additions backwards compatible. It moves modules from v1alpha8 to top-level and fixes dependency constraints.

  • Removes entire v1alpha8 namespace and moves components to top-level modules
  • Updates imports from v1alpha8 to new locations (electrical_components and streaming)
  • Fixes dependency constraint for frequenz-api-common from "< 9" to "< 1"

Reviewed Changes

Copilot reviewed 10 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/test_streaming.py Updates import and docstring to reference top-level streaming module
tests/test_client_common_v1alpha8.py Removes entire test file for v1alpha8 components
tests/microgrid/test_ids_alpha8.py Removes entire test file for v1alpha8 microgrid IDs
src/frequenz/client/common/v1alpha8/* Removes all v1alpha8 modules including pagination, microgrid, sensors, metric, and init.py
pyproject.toml Updates frequenz-api-common dependency constraint from "< 9" to "< 1"
RELEASE_NOTES.md Updates release notes to reflect backwards compatible changes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@llucax llucax added this to the v0.4.0 milestone Aug 18, 2025
@llucax llucax linked an issue Aug 19, 2025 that may be closed by this pull request
@Marenz Marenz added this pull request to the merge queue Aug 19, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit f1ef400 Aug 19, 2025
5 checks passed
@llucax llucax deleted the fix-v0.x.x branch August 19, 2025 09:13
@llucax llucax modified the milestones: v0.4.0, v0.3.5 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:microgrid Affects the microgrid protobuf definitions part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asses how to handle different versions (v0alphaX namespaces)

2 participants